package com.jiankang.askhealth.core.user.bean;

public class UserBean {
	private Long userId;

	private String username;

	private String role;
	
	private boolean admin;
	
	private boolean member;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public boolean isAdmin() {
		if("a".equals(role)) {
			return true;
		}
		return false;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public boolean isMember() {
		if("u".equals(role)) {
			return true;
		}
		return false;
	}
	
	public void setMember(boolean member) {
		this.member = member;
	}
}
